package com.firmboy.rpc.demo.consumer;

import com.firmboy.rpc.RpcFramework;
import com.firmboy.rpc.demo.api.DemoService;

/**
 * @author firmboy
 * @create 2018-06-03 上午8:55
 **/
public class RpcConsumer {


    public static void main(String[] args){
        DemoService demoService = RpcFramework.refer(DemoService.class, "127.0.0.1", 1234);
        for (int i=0;i<Integer.MAX_VALUE;i++){
            String sayHello = demoService.sayHello("world " + i);
            System.out.println(sayHello);

        }
    }
}
